package com.dwx.shopping_mall.mapper;

import com.dwx.shopping_mall.entity.WalletDetails;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface WalletDetailsMapper {

    int deleteByPrimaryKey(Integer id);

    int insert(WalletDetails record);

    int insertSelective(WalletDetails record);

    WalletDetails selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(WalletDetails record);

    int updateByPrimaryKey(WalletDetails record);

    // 新增交易记录
    Integer addTransaction(WalletDetails walletDetails);

    // 查询用户钱包金额变动明细的接口
    List<WalletDetails> queryWalletDetails(Integer walletId);
}
